package grape.crm.rest.client.impl.customer;

import grape.crm.rest.client.customer.CustomerClient;
import grape.crm.rest.customer.mvc.CustomerInnerController;
import grape.crm.service.customer.param.AddCustomerParam;
import grape.crm.service.customer.po.Customer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * <p>
 *
 * </p>
 *
 * @author yangwei
 * @since 2020-10-02 10:30
 */
@Component
public class CustomerClientImpl implements CustomerClient {

    @Autowired
    private CustomerInnerController  customerInnerController;
    @Override
    public Customer create(AddCustomerParam addCustomerParam) {
        return customerInnerController.create(addCustomerParam);
    }
}
